home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Shell Options 1.xpl < prev    next >
Text File  |  2002-01-04  |  2KB  |  49 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\Security\File System"
  5. "NAME"="Shell Extensions"
  6. "VERSION"="1.06"
  7. "OSVERSION"="0101011"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Allow only approved shell extensions"
  10. "DESCRIPTION 1"="If this option is set, Windows will only allow approved extensions to be executed. This settings is mainly for super-high-security computers."
  11. "DESCRIPTION 2"="Which extension is considered to be "approved" is configured below [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]."
  12. "DESCRIPTION 3"="More information can be found at the MS KB: Q216384."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17.  
  18.  
  19. 'The CLSIDs for approved shell extensions are registered under the registry key: 
  20. '[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved] 
  21. sPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\EnforceShellExtensionSecurity"
  22. 'EnforceShellExtensionSecurity is off when the value is zero or is removed, and on when the value is 1. 
  23.  
  24. Sub Plugin_Initialize 
  25.     i=RegReadValue(sPath)
  26.     if i=1 then SetUIElement 1,true
  27. End Sub
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  b=GetUIElement(1)
  34.  if b=true then
  35.     Call RegWriteValue(sPath,1,2) 
  36.  else
  37.     If IsEmpty(RegReadValue(sPath))=false then
  38.        Call RegDeleteValue(sPath)
  39.     end if
  40.  end if
  41. End Sub
  42.  
  43.  
  44. Sub Plugin_Terminate 
  45. End Sub
  46.  
  47.  
  48.  
  49.